/*
 * $Id: ObjectTextModel.java 136 2009-07-16 07:53:43Z donbeave $
 */

package labour.concept.client.data;

@SuppressWarnings("serial")
public class ObjectTextModel extends BaseModel {

  public static final String LOCALE_ID = "LocaleID";
  public static final String OBJECT_ID = "ObjectID";
  public static final String IS_PUBLISHED = "IsPublished";
  public static final String NAME = "Name";

  public static final String OBJECT_UID = "ObjectUID";

  public ObjectTextModel() {
    set(IS_PUBLISHED, false);
  }

  public String getLocaleId() {
    return get(LOCALE_ID);
  }

  public String getObjectId() {
    return get(OBJECT_ID);
  }

  public String getObjectUId() {
    return get(OBJECT_UID);
  }

  public Boolean isPublished() {
    return get(IS_PUBLISHED);
  }

  public String getName() {
    return get(NAME);
  }

  public void setName(String name) {
    set(NAME, name);
  }

  public Boolean isExist() {
    if (getObjectId() != null && !getObjectId().equals("0")) {
      return true;
    }
    return false;
  }

}
